package main

func getBox(id int) int {
	sum := 0
	for id > 0 {
		sum += id%10
		id /= 10
	}
	return sum
}

func countBalls(lowLimit int, highLimit int) int {
	m := make(map[int]int)
	max := 0
    for i := lowLimit; i <= highLimit; i++ {
		box := getBox(i)
		m[box]++
		if m[box] > max {
			max = m[box]
		}
	}
	return max
}

func main() {
	println(countBalls(1, 110))
}